package com.lei.synchronized_upgrade.Lockelimination;

/**
 * @Author: Doream
 * @Date: 2022/3/19 9:57
 */
public class Demo01 {
    public static void main(String[] args) {
        contactString("aa","bb","cc");
    }
    public static String contactString(String s1,String s2,String s3){
        return new StringBuffer().append(s1).append(s2).append(s3).toString();
        /**
         *     public synchronized StringBuffer append(StringBuffer sb) {
         *         this.toStringCache = null;
         *         super.append(sb);
         *         return this;
         *     }
         */
    }
}
